import config from "../../config/index.js";
import http from "../../utils/request.js";

export default {
    login: {
        url: `${config.API_URL}/platform/login`,
        name: "登录",
        post: async function (data = {}) {
            return await http.post(this.url, data, {
                headers: {
                    'Content-Type': 'multipart/form-data'
                }
            });
        }
    },
    logout: {
        url: `${config.API_URL}/platform/logout`,
        name: "登出",
        get: async function () {
            return await http.get(this.url);
        }
    }
}
